package kr.hkit.powerjava.work;

import javax.swing.JPanel;
import java.awt.BorderLayout;
import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.GridLayout;
import java.awt.FlowLayout;
import javax.swing.SwingConstants;
import javax.swing.BoxLayout;

public class Panel_DynamicLabel extends JPanel {
	private JTextField textField;

	/**
	 * Create the panel.
	 */
	public Panel_DynamicLabel(String s) {

		initialize(s);
	}
	private void initialize(String s) {
		setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
		
		JPanel panel_Product = new JPanel();
		add(panel_Product);
		panel_Product.setLayout(new FlowLayout(FlowLayout.LEADING, 5, 5));
		
		JLabel lblLabelName = new JLabel(s);
		panel_Product.add(lblLabelName);
		
		textField = new JTextField();
		panel_Product.add(textField);
		textField.setColumns(10);
	}

}
